const pxObj = {};

for (let i = 0; i <= 500; i++) {
  pxObj[i * 2] = `${i * 2}px`;
}

module.exports = {
  content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],

  theme: {
    extend: {
      // 扩展颜色
      colors: {
        primary: "#409eff",
        success: "#67c23a",
        warning: "#e6a23c",
        danger: "#f56c6c",
        info: "#909399",
      },
    },

    spacing: {
      ...pxObj,
    },
    fontSize: {
      ...pxObj,
    },
    borderRadius: {
      ...pxObj,
    },
  },
  plugins: [],
};
